import { Children, lazy } from "react";

// import * as Type from "../utils/index";

import icon1 from '../../public/image1/icon1.png'
import icon2 from '../../public/image1/icon2.png'
import icon3 from '../../public/image1/icon3.png'
import icon4 from '../../public/image1/icon4.png'
import icon5 from '../../public/image1/icon5.png'
import icon6 from '../../public/image1/icon6.png'
import icon7 from '../../public/image1/icon7.png'
import icon8 from '../../public/image1/icon8.png'
import icon9 from '../../public/image1/icon9.png'
import icon10 from '../../public/image1/icon10.png'
import icon11 from '../../public/image1/icon11.png'
import icon12 from '../../public/image1/icon12.png'
import icon13 from '../../public/image1/icon13.png'
import icon14 from '../../public/image1/icon14.png'
import icon15 from '../../public/image1/icon15.png'
import icon16 from '../../public/image1/icon16.png'
import icon17 from '../../public/image1/icon17.png'
import icon18 from '../../public/image1/icon18.png'
import icon19 from '../../public/image1/icon19.png'
// 二级路由1
export const homeRouter: Router1 = [
    {
        path: '/home/select',
        element: lazy(() => import("../Pages/home/Select")),
        title: '精品推荐',
        icon:icon1
        
    },
    {
        path: '/home/workbench',
        element: lazy(() => import("../Pages/home/Workbench")),
        title: '工作台',
        icon:icon2
    },
    {
        path: '/home/create',
        element: lazy(() => import("../Pages/home/Create")),
        title: '创建设计',
        icon:icon3
    },
     {
        path: '/home/preference',
        element: lazy(() => import("../Pages/home/Preference")),
        title: '偏好设置',
        icon:icon4
    },
    {
        path: '/home/collection',
        element: lazy(() => import("../Pages/home/Collection")),
        title: '我的收藏',
        icon:icon5
    },
    {
        path: '/home/h5',
        element: lazy(() => import("../Pages/home/H5")),
        title: 'H5',
        icon:icon6
    },
    {
        path: 'home/placard',
        element: lazy(() => import("../Pages/home/Placard")),
        title: '海报',
        icon:icon7
    },
    {
        path: '/home/long',
        element: lazy(() => import("../Pages/home/Long")),
        title: '长页',
        icon:icon8
    },
    {
        path: '/home/form',
        element: lazy(() => import("../Pages/home/Form")),
        title: '表单',
        icon:icon9
    },
    {
        path: '/home/interaction',
        element: lazy(() => import("../Pages/home/Interaction")),
        title: '互动',
        icon:icon10
    },
    {
        path: '/home/electronic',
        element: lazy(() => import("../Pages/home/Electronic")),
        title: '电子画册',
        icon:icon11
    },
    {
        path: '/home/video',
        element: lazy(() => import("../Pages/home/Video")),
        title: '视频',
        icon:icon12
    },
    {
        path: 'home/ai',
        element: lazy(() => import("../Pages/home/AI")),
        title: 'AI 创作',
        icon:icon13
    },
    {
        path: '/home/digital',
        element: lazy(() => import("../Pages/home/Digital")),
        title: '数字人',
        icon:icon14
    },
    {
        path: '/home/mapping',
        element: lazy(() => import("../Pages/home/Mapping")),
        title: '作图工具',
        icon:icon15
    },
    {
        path: '/home/marketing',
        element: lazy(() => import("../Pages/home/Marketing")),
        title: '营销工具',
        icon:icon16
    },
    {
        path: '/home/case',
        element: lazy(() => import("../Pages/home/Case")),
        title: '案例中心',
        icon:icon17
    },
    {
        path: '/home/genuine',
        element: lazy(() => import("../Pages/home/Genuine")),
        title: '正版素材',
        icon:icon18
    },
    {
        path: '/home/become',
        element: lazy(() => import("../Pages/home/Become")),
        title: '成为设计师',
        icon:icon19
    }
]
// 二级路由2 

// 一级路由

const routes: Router1 = [
    {
        path: '/',
        to: '/home'
    },
    {
        path: '/home',
        element: lazy(() => import("../Pages/Home")),
        children: homeRouter,
        // children:homeRouter1,
        // children:homeRouter2,
    },
    {
        path: '/login',
        element: lazy(() => import("../Pages/Login")),
    },
    {
        path: '/*',
        element: lazy(() => import("../Pages/NotFoundPage"))
    },
    {
        path:'work',
        element:lazy(()=>import('../Pages/Work'))
    }
]

export default routes